package com.device.repository;

import com.device.entity.Rent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface RentRepository extends JpaRepository<Rent,Integer> {
    Page<Rent> findAllByUserId(Integer userId ,Pageable pageable);
}
